package com.kangyi.app.mapper;

import com.github.pagehelper.Page;
import com.kangyi.dto.AppNursingPageQueryDTO;
import com.kangyi.entity.NursingHome;
import com.kangyi.vo.AppNursingListVO;
import com.kangyi.vo.NursingHomeDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper
public interface NursingHomeMapper {
    Page<AppNursingListVO> list(@Param("query") AppNursingPageQueryDTO appNursingPageQueryDTO,@Param("regionId") Integer regionId);

    NursingHomeDetailVO getNursingHomeById(Integer id);

    @Select("select * from nursing_home where id = #{id}")
    NursingHome selectById(Integer nursingHomeId);
}
